package com.gaofeng.demo15;

import java.util.ArrayList;

public class demo01 {
    public static void main(String[] args) {
        ArrayList<Student> list= new ArrayList<>();
        Student stu1 = new Student("zhangsan",23,"男");
        Student stu2 = new Student("lisi",20,"男");
        Student stu3 = new Student("wangwu",26,"女");

        list.add(stu1);
        list.add(stu2);
        list.add(stu3);

        int maxAge = ArrayUtil.getMaxAge(list);
        System.out.println(maxAge);

        for (int i = 0; i < args.length; i++) {
            System.out.println(args[i]);
        }
    }
}
